/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.Toto.isp.violate.model;
import za.ac.cput.Toto.isp.violate.services.Atm;


/**
 *
 * @author 210012285
 */
public class Bank1 {
    private String name;
    private long accNo;
    
    private Bank1 b;

    public long getAccNo() {
        return accNo;
    }

    public void setAccNo(long accNo) {
        this.accNo = accNo;
    }

    public Bank1 getAccount() {
        return b;
    }

    public void setAccount(Bank1 account) {
        this.b = account;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

  
    public boolean validate(Atm user, long seachNo)
    {
        
        boolean found ;
        
        found = user.withdraw(b, seachNo);
        
        return found;
        
        
   }
    
}
